<template>
    <div class="todayData">
        <el-card class="box-card">
            <div class="title">
                <div class="titleInfo">
                    库存总览
                </div>
                <el-button type="text" class="button" @click="button()">
                        库存管理 >
                </el-button>
            </div>
            <div class="info">
                <div class="label">
                    <div class="infoTop">
                        <!-- <svg t="1715964654174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14781" width="32" height="32"><path d="M512.227556 0C229.944889 0 1.137778 229.091556 1.137778 511.715556c0 282.567111 228.807111 511.658667 511.089778 511.658666s511.089778-229.091556 511.146666-511.658666C1023.374222 229.091556 794.510222 0 512.227556 0z m275.683555 380.871111L442.197333 727.04c-6.826667 6.826667-18.602667 6.030222-26.396444-1.706667l-23.153778-23.210666-154.908444-155.079111a19.911111 19.911111 0 0 1 0-28.216889l42.211555-42.268445a19.911111 19.911111 0 0 1 28.16 0l121.742222 121.856 287.687112-287.971555c6.826667-6.826667 18.659556-6.030222 26.396444 1.706666l42.268444 42.325334c7.793778 7.793778 8.533333 19.626667 1.706667 26.453333z" fill="#55A6FF" p-id="14782"></path></svg> -->
                        <svg t="1715964783399" class="icon" viewBox="0 0 1415 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21375" width="32" height="32"><path d="M1229.764646 52.385975l-718.724532 717.137943-317.317674-317.317674a109.315939 109.315939 0 0 0-72.983065-34.904944 88.69029 88.69029 0 0 0-69.809888 26.972002c-19.03906 20.625649-28.558591 42.837886-26.972003 69.809889 1.586588 26.972002 12.692707 50.770828 34.904945 72.983065l385.540973 383.954385a90.911514 90.911514 0 0 0 133.273424 0l785.361243-785.361243a92.022125 92.022125 0 0 0 0-133.273423 92.022125 92.022125 0 0 0-133.273423 0z" fill="#1296db" p-id="21376"></path><path d="M1415.236826 119.022686A112.647774 112.647774 0 0 0 1380.331882 34.933503 112.647774 112.647774 0 0 0 1296.242698 0.028559a112.647774 112.647774 0 0 0-84.089183 34.904944L510.881455 736.205562l-299.865202-301.45179c-26.972002-25.385414-55.530593-39.664709-88.848948-41.251298-33.318356-1.586588-63.463535 9.51953-88.848949 33.318356v1.586589c-23.798826 25.385414-34.904944 55.530593-33.318356 87.26236 1.586588 33.318356 15.865884 61.876946 41.251298 88.848949l385.540974 382.367797a116.614245 116.614245 0 0 0 107.888009 34.904944c22.212237-4.759765 41.251298-15.865884 60.290358-33.318356L1380.331882 203.11187a112.647774 112.647774 0 0 0 34.904944-84.089184zM560.065695 953.568169c-11.106119 12.692707-22.212237 19.03906-34.904944 20.625649a62.987558 62.987558 0 0 1-63.463535-19.039061v-1.586588L76.156242 569.613783a89.800902 89.800902 0 0 1-28.558591-57.117181c-1.586588-19.03906 6.346353-34.904944 20.625649-52.357416 14.279295-14.279295 31.731767-20.625649 50.770828-19.03906 20.625649 1.586588 41.251298 11.106119 57.117181 28.55859l317.317674 317.317674c3.173177 1.586588 6.346353 3.173177 7.932942 4.759765 3.173177 1.586588 6.346353 1.586588 9.51953 1.586589 3.173177 0 6.346353 0 9.51953-1.586589 3.173177-1.586588 4.759765-3.173177 7.932942-4.759765L1247.058459 69.838447V68.251859c12.692707-14.279295 30.145179-20.625649 49.184239-20.625649s36.491533 6.346353 49.18424 20.625649c0 1.586588 1.586588 1.586588 1.586588 1.586588 14.279295 12.692707 20.625649 30.145179 20.625649 49.184239s-6.346353 36.491533-22.212237 49.18424L560.065695 953.568169z" fill="#1296db" p-id="21377"></path></svg>
                        已启用
                    </div>
                    <div class="infoMid">
                         {{ res.sold }}
                    </div>
                </div>
                <div class="label">
                    <div class="infoTop">
                        <svg t="1716032909030" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3643" width="32" height="32"><path d="M300.59199 643.596828a247.134462 247.134462 0 0 1-35.270923-163.880643l-16.603964-2.259995a267.089418 267.089418 0 0 0 38.257917 174.65662c67.639853 108.236764 202.998558 152.652668 321.6823 107.566766l-6.377987-16.264965c-112.115756 43.516905-238.60648 1.119998-301.687343-99.830783m475.264965-98.407785a267.225418 267.225418 0 0 0-38.247916-174.65662C669.979186 262.281659 534.620481 217.834756 415.896739 262.961657l6.377986 16.264965c110.586759-43.875904 237.088484-1.478997 300.758345 100.399781 30.681933 49.105893 42.947906 107.227766 35.309924 163.849643l17.513961 1.699997M524.022504 879.554315l3.618992-22.512951-23.412949 7.077984-22.312951-11.355975-0.109 24.110947-17.754962 16.145965 22.98295 8.387982 10.686977 21.173954c-132.108712-4.70799-259.930434-71.537844-334.96827-191.621583-119.922739-191.911582-61.400866-444.745031 130.690715-564.78877 192.091582-120.023739 444.965031-61.761865 564.87877 130.140717 119.933739 191.920582 61.450866 444.745031-130.650716 564.77877-71.019845 44.375903-151.103671 64.09986-229.3605 62.380864l14.205969-17.743961 24.771946-2.868994-13.266971-23.304949m351.974233-595.509704C750.375011 83.016049 485.675587 22.065182 284.486025 147.786908 83.267464 273.518634 22.015597 538.179058 147.618324 739.18762c125.601726 200.988562 390.32115 261.96043 591.540711 136.228704 200.638563-126.642724 261.86943-391.292148 136.837702-591.371713M106.690413 764.769565C-32.567284 541.91605 35.852567 246.216694 258.924081 106.828997 481.966595-32.548699 777.735951 35.590152 916.983648 258.432667c139.237697 222.832515 71.758844 517.981872-152.213668 657.940567-223.061514 139.387696-518.84187 71.228845-658.079567-151.603669m839.424172-524.540858C796.62091 1.001228 480.176599-71.876613 240.720121 77.748061 1.272642 227.372735-71.945198 543.746046 77.539476 782.973525c149.475674 239.198479 465.977985 312.09632 705.405464 162.480646 239.437479-149.615674 312.635319-466.017985 163.169645-705.225464M177.889258 544.456044l5.467988-23.672948-23.08295 5.617988-20.463955-12.535973-2.538995 24.352947-17.743961 16.154965 22.042952 8.99698 8.90698 22.263952 16.034965-18.873959 23.912948-2.309995-12.515972-20.013957-0.02 0.02m73.29784 167.947635l-17.973961-16.612964-1.359997-24.412947-20.013956 12.515973-22.772951-6.026987 5.218989 24.592946-12.535973 20.462956 22.89295 2.139995 15.214967 18.31396 9.577979-21.152954 21.751953-9.819978m115.064749 105.139771l-22.393951-7.478984-11.236975-22.082952-13.085972 19.594957-23.372949 3.187993 14.914968 19.783957-3.098994 23.412949 21.962952-7.417984 21.393954 11.926974-1.349997-24.452946 16.266964-16.473964m147.805679-638.66661l-5.488989 23.642949 23.671949-4.63899 21.033954 13.405971 1.578997-23.782948 18.31396-15.234967-22.621951-9.896979-9.758979-21.692952-15.724965 17.414962-24.462947 1.338997 13.458971 19.443957m255.791442 139.887696l17.944961 16.594964 1.928996 25.351944 20.013957-12.495972 22.77295 6.017987-5.227989-24.541947 11.945974-21.382953-22.85395-2.149996-15.794965-19.203958-8.447982 22.97295-22.281952 8.836981m78.595829 178.516611l-5.478988 23.671949 23.11295-5.548988 20.492955 12.506972 1.919996-25.261945 17.773961-16.155964-22.052952-8.966981-8.89698-22.292951-16.015965 18.884958-23.912948 2.298995 13.046971 20.874955 0.011-0.011M644.187242 218.974753l22.99295 8.396982 11.226976 22.072952 13.085971-19.583958 23.333949-3.178993-14.905967-19.763957 2.509994-24.331947-21.033954 6.797986-21.373953-11.916974 1.350997 24.422946-17.186963 17.084963" fill="#d81e06" p-id="3644"></path><path d="M386.884802 420.413314l-110.02576-85.973812-38.127917 48.805893c-5.268989 6.747985-4.52899 12.755972 2.218995 18.013961l88.553807 69.199849c3.198993 2.498995 7.037985 3.777992 11.196976 3.597993 4.917989-0.438999 15.004967-9.705979 30.629933-27.51194l12.346973 18.21496c-19.603957 20.702955-33.019928 31.649931-39.937913 32.829928-7.307984 0.578999-14.655968-1.739996-22.203951-7.057984l-97.960787-76.537834c-15.083967-11.795974-16.434964-25.421945-4.237991-41.04691l72.097843-92.271799 17.034963 13.305971-18.993958 24.312947 92.822797 72.517842 32.999929-42.236908-117.124745-91.512801 12.616972-16.154965 134.338708 104.968772-58.244874 74.536837zM449.276667 462.001224c9.985978 14.664968 18.063961 29.549936 24.081947 44.544903l-17.093963 5.778987 30.170935 23.571949A77.547831 77.547831 0 0 0 501.970552 522.601092l22.452951-28.751937 16.154965 12.615972-22.462951 28.751937c-4.78899 5.396988-9.667979 10.176978-14.645968 13.99597l56.781876 44.366903-12.615973 16.153965-63.180862-49.364892c-1.999996 0.719998-3.679992 1.418997-5.218989 1.918995 17.234962 24.043948 31.890931 48.065895 43.637905 71.818844l-20.913954 7.376984c-11.666975-27.121941-25.502944-52.213886-41.35791-75.455836l-0.939998 0.119c-21.552953 0.879998-49.464892-6.928985-83.294819-23.633948l2.358995-21.312954c34.039926 17.165963 59.60187 25.412945 77.176832 24.862946 3.158993-0.389999 6.018987-0.728998 8.676981-1.228998l-66.020856-51.575887 12.616973-16.144965 42.946906 33.548927c-5.947987-15.794966-13.315971-30.130934-21.983952-43.187906L449.276667 462.001224z m29.500935-6.667986c10.395977 14.124969 19.042959 28.310938 25.791944 42.716907l-18.50396 6.127987c-6.727985-15.544966-14.904968-29.940935-24.421946-43.375906l17.133962-5.468988z m-14.895967-41.646909l64.420859 50.33389 10.395978-13.315971-51.464888-40.207912 11.925974-15.265967 51.463888 40.217913 9.847978-12.606973 16.324965 12.755972-9.847979 12.605973 50.404891 39.367914-11.926974 15.264967-50.394891-39.377914-10.395977 13.315971 62.280864 48.665894-8.178982 10.466977c-12.096974 9.984978-24.932946 19.103958-38.687916 27.210941l-12.336973-16.773964c9.696979-4.71899 19.674957-10.917976 30.110935-18.784959l-126.001726-98.439786 12.059974-15.432966z m344.23525 230.649498l-32.719929 41.875909-17.214962-13.443971 19.963956-25.561944-118.543741-92.612799-19.974957 25.551945-17.214962-13.454971 32.729928-41.877909 66.369856 51.853887c2.388995-6.706985 3.998991-13.154971 5.187988-19.083958l21.493954 11.645974c-1.898996 6.798985-4.51999 14.184969-7.697984 22.272952l67.620853 52.834885z m-152.952667-65.770857l100.448781 78.476829-12.614972 16.145965-100.450781-78.476829 12.616972-16.145965z m-52.943884 11.787974l155.632661 121.603736-12.615973 16.143964-48.445894-37.847917-28.980937 37.088919c-4.158991 5.327988-4.248991 9.825979 0.369999 13.434971l22.352951 17.474962c2.139995 1.659996 4.52899 1.520997 7.397984 0.051 2.998993-1.648996 9.536979-8.548981 19.773957-20.563956l12.095974 17.455962c-15.435966 16.812963-25.880944 25.790944-31.529932 26.811942-5.337988 0.978998-11.156976-0.719998-17.193962-5.429988l-30.700933-23.980948c-12.244973-9.577979-12.864972-21.213954-2.188996-34.869924l31.749931-40.647911-26.630942-20.792955-0.409999 0.529999c-14.295969 16.844963-30.220934 26.980941-47.274897 30.519933-16.175965 2.778994-36.339921-0.678999-60.201869-10.744976l2.197995-22.563951c22.73295 10.037978 40.547912 13.94597 53.464884 12.037973 12.815972-2.849994 24.571946-10.237978 35.129923-22.273951l0.419-0.539999-47.024898-36.73892 12.613973-16.157965z" fill="#d81e06" p-id="3645"></path></svg>
                        已卖完
                    </div>
                    <div class="infoMid">
                         {{ res.soldOut }}
                    </div>
                </div>
                <div class="label">
                    <div class="infoTop">
                        <svg t="1716032971381" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5060" width="32" height="32"><path d="M929.792 807.424c163.328-230.912 108.544-550.4-122.368-713.216-230.4-163.328-550.4-108.544-713.216 122.368-163.328 230.4-108.544 550.4 122.368 713.216 230.4 163.328 550.4 108.544 713.216-122.368z m-706.048 112.64C-2.048 760.832-55.296 448.512 103.936 223.744c159.744-225.28 471.552-278.528 696.832-119.808 225.28 159.744 278.528 471.552 119.808 696.832-159.744 225.28-472.064 278.528-696.832 119.296z" fill="#EC696A" p-id="5061"></path><path d="M876.032 769.536C1018.368 568.32 970.24 290.816 769.536 148.48 568.32 6.144 290.304 53.76 147.968 254.464S53.76 733.696 254.464 876.032c201.216 141.824 479.232 94.208 621.568-106.496zM258.048 870.912C59.904 730.624 12.8 456.704 153.088 258.048c140.288-198.144 414.72-245.248 612.864-105.472 198.144 140.288 245.248 414.72 104.96 612.352-140.288 199.168-414.208 246.272-612.864 105.984z" fill="#DF6766" p-id="5062"></path><path d="M833.536 591.872c-9.728 38.912-26.624 76.8-51.2 111.104-24.576 34.816-54.272 63.488-88.064 85.504l5.12 3.584c33.28-22.528 62.976-51.2 87.552-85.504s41.472-72.192 51.712-111.104c0.512 0-5.12-3.584-5.12-3.584zM180.224 424.96c9.728-38.912 26.624-76.8 51.2-111.104 24.576-34.816 54.272-63.488 88.064-85.504l-5.12-3.584c-33.28 22.528-62.976 51.2-87.552 85.504s-41.472 72.192-51.712 111.104l5.12 3.584z m551.424-229.376c3.072 2.56 1.536 5.632 1.024 9.216-1.536 7.168-2.56 14.848-3.584 22.528 5.12 5.632 10.752 10.752 15.872 16.384 2.56 2.56 5.12 4.096 3.072 8.192-1.536 3.584-5.632 3.072-8.192 3.072-7.168 1.024-13.824 2.56-20.992 3.584-3.584 6.656-6.144 13.824-9.728 20.992-1.536 3.584-3.072 6.144-6.656 6.144-3.072 0-4.608-4.096-5.12-6.144l-10.24-19.968c-8.192-1.024-15.872-2.048-23.552-3.072-3.072-0.512-6.144-1.536-6.656-5.12 1.024-3.072 2.56-5.632 5.12-7.168l15.36-14.848-4.608-25.6c0-2.56 2.048-5.12 4.608-5.632 2.048 0.512 4.096 1.024 6.144 2.56l13.824 6.144c2.048 1.536 4.096 2.048 6.144 3.072 6.144-3.072 11.776-6.656 17.92-10.24 2.048-2.048 5.12-3.072 7.68-4.096 1.024-0.512 2.048-0.512 2.56 0z m-153.6-64.512c3.072 2.56 1.536 5.632 1.024 9.216-1.536 7.68-2.56 14.848-3.584 22.528 5.12 5.632 10.752 10.752 15.872 16.384 2.56 2.56 5.12 4.096 3.072 8.192-1.536 3.584-5.632 3.072-8.192 3.072-7.168 1.024-13.824 2.56-20.992 3.584-3.584 6.656-6.144 13.824-9.728 20.992-1.536 3.584-3.072 6.144-6.656 6.144-2.56 0-4.608-4.096-5.12-6.144l-10.24-19.968c-8.192-1.024-15.872-2.048-23.552-3.072-3.072-0.512-6.144-1.536-6.656-5.12 1.024-3.072 3.072-5.12 5.12-7.168l15.36-14.848c-1.536-8.704-3.072-16.896-4.608-25.6 0-2.56 2.048-5.12 4.608-5.632 2.048 0.512 4.096 1.024 6.144 2.56l13.824 6.144c2.048 1.536 4.096 2.048 6.144 3.072 6.144-3.072 11.776-6.656 17.92-10.24 2.048-2.048 5.12-3.072 7.68-4.096 1.024-0.512 1.536-0.512 2.56 0z m260.608 184.32c3.072 2.56 1.536 5.632 1.024 9.216-1.536 7.68-2.56 14.848-3.584 22.528 5.12 5.632 10.752 10.752 15.872 16.384 2.56 2.56 5.12 4.096 3.072 8.192-1.536 3.584-5.632 3.072-8.192 3.072-7.168 1.024-14.336 2.56-20.992 3.584-3.584 6.656-6.656 14.336-9.728 20.992-1.536 3.584-3.072 6.144-6.656 6.144-3.072 0-4.608-4.096-5.12-6.144l-10.24-19.968c-8.192-1.024-15.872-2.048-23.552-3.072-3.072-0.512-6.144-1.536-6.656-5.12 1.024-3.072 3.072-5.12 5.12-7.168l15.36-14.848-4.608-25.6c0-2.56 2.048-5.12 4.608-5.632 2.048 0.512 4.096 1.024 6.144 2.56l13.824 6.144c2.048 1.536 4.096 2.048 6.144 3.072 6.144-3.072 11.776-6.656 17.92-10.24 2.048-2.048 5.12-3.072 7.68-4.096 1.024-0.512 1.536-0.512 2.56 0z m32.768 141.312c3.072 2.56 1.536 5.632 1.024 9.216l-3.584 22.528c5.12 5.632 10.752 10.752 15.872 16.384 2.56 2.56 5.12 4.096 3.072 8.192-1.536 3.584-5.632 3.072-8.192 3.072-7.168 1.024-14.336 2.56-20.992 3.584-3.584 6.656-6.656 14.336-9.728 20.992-1.536 3.584-3.072 6.144-6.656 6.144-3.072 0-4.608-4.096-5.12-6.144-3.584-6.656-7.168-13.312-10.24-19.968-8.192-1.024-15.36-2.048-23.552-3.072-3.072-0.512-6.144-1.536-6.656-5.12 1.024-3.072 2.56-5.632 5.12-7.168l15.36-14.848c-1.536-8.704-3.072-16.896-4.608-25.6 0-2.56 2.048-5.12 4.608-5.632 2.048 0.512 4.096 1.024 6.144 2.56l13.824 6.144c2.048 1.536 4.096 2.048 6.144 3.072 6.144-3.072 11.776-6.656 17.92-10.24 2.048-2.048 5.12-3.072 7.68-4.096 1.024-1.024 2.048-0.512 2.56 0z m-442.368-312.832c3.072 2.56 1.536 5.632 1.024 9.216-1.536 7.68-2.56 14.848-3.584 22.528 5.12 5.632 10.752 10.752 15.872 16.384 2.56 2.56 5.12 4.096 3.072 8.192-1.536 3.584-5.632 3.072-8.192 3.072-7.168 1.024-14.336 2.048-20.992 3.584-3.584 6.656-6.144 13.824-9.728 20.992-1.536 3.584-3.072 6.144-6.656 6.144-3.072 0-4.608-4.096-5.12-6.144l-10.24-19.968c-8.192-1.024-15.872-2.048-23.552-3.072-3.072-0.512-6.144-1.536-6.656-5.12 1.024-3.072 3.072-5.12 5.12-7.168l15.36-14.848-4.608-25.6c0-2.56 2.048-5.12 4.608-5.632 2.048 0.512 4.096 1.024 6.144 2.56l13.824 6.144c2.048 1.536 4.096 2.048 6.144 3.072 6.144-3.072 11.776-6.656 17.92-10.24 2.048-2.048 5.12-3.072 7.68-4.096 1.024-0.512 2.048-0.512 2.56 0zM286.72 824.832c3.584 2.048 6.144 0 8.704-2.048l19.456-10.752 20.48 9.216c3.584 1.536 5.632 3.072 8.704 0.512 2.56-2.56 1.024-6.656 0.512-8.704-1.024-7.168-2.56-14.336-3.584-20.992 5.12-5.632 10.752-10.752 16.384-15.872 2.56-2.56 4.608-5.12 3.584-7.68-1.024-2.56-5.12-3.072-7.168-3.072l-22.528-3.072-11.264-21.504c-1.024-2.56-3.584-5.632-6.656-4.096-2.56 1.536-4.096 4.096-5.12 7.168-3.072 6.656-6.144 12.8-9.216 19.456l-26.112 4.096c-2.56 1.024-4.096 3.584-3.584 6.144 1.024 2.048 2.56 3.584 4.096 5.12l10.24 11.264c1.536 1.536 3.072 3.072 4.608 5.12-1.536 6.656-2.048 13.312-3.584 19.968-1.024 2.56-1.024 5.632-1.024 8.704 2.56-0.512 2.56 0 3.072 1.024zM174.592 701.44c3.584 2.048 6.144 0 8.704-2.048l19.456-10.752 20.48 9.216c3.584 1.536 5.632 3.072 8.704 0.512 2.56-2.56 1.024-6.656 0.512-8.704-1.536-6.656-2.56-14.336-3.584-20.992l16.896-15.872c2.56-2.56 4.608-5.12 3.584-7.68-1.024-2.56-5.12-3.072-7.168-3.072l-22.528-3.072-11.264-21.504c-1.024-2.56-3.584-5.632-6.656-4.096-2.56 1.536-4.096 4.096-5.12 7.168-3.072 6.656-6.144 12.8-9.216 19.456l-26.112 4.096c-2.56 1.024-4.096 3.584-3.584 6.144 1.024 1.536 2.56 3.584 4.096 5.12l10.24 11.264c2.048 1.536 3.072 3.072 4.608 5.12-1.536 6.656-2.048 13.312-3.584 19.968-1.024 2.56-1.024 5.632-1.024 8.704 2.048 0 2.048 0 2.56 1.024zM435.2 885.76c3.584 2.048 6.144 0 8.704-2.048l19.456-10.752 20.48 9.216c3.584 1.536 5.632 3.072 8.704 0.512 2.56-2.56 1.024-6.656 0.512-8.704-1.024-7.168-2.56-14.336-3.584-20.992 5.12-5.632 10.752-10.752 16.384-15.872 2.56-2.56 4.608-5.12 3.584-7.68-1.024-2.56-5.12-3.072-7.168-3.072l-22.528-3.072-11.264-21.504c-1.024-2.56-3.584-5.632-6.656-4.096-2.56 1.536-4.096 4.096-5.12 7.168-3.072 6.656-6.144 12.8-9.216 19.456l-26.112 4.096c-2.56 1.024-4.096 3.584-3.584 6.144 1.024 2.048 2.56 3.584 4.096 5.12l10.24 11.264c1.536 1.536 3.072 3.072 4.608 5.12-1.536 6.656-2.048 13.312-3.584 19.968-1.024 2.56-1.024 5.632-1.024 8.704 2.048-0.512 2.56 0 3.072 1.024z m143.872-16.384c3.584 2.048 6.144 0 8.704-2.048l19.456-10.752 20.48 9.216c3.584 1.536 5.632 3.072 8.704 0.512 2.56-2.56 1.024-6.656 0.512-8.704-1.536-6.656-2.56-14.336-3.584-20.992l16.896-15.872c2.56-2.56 4.608-5.12 3.584-7.68-1.024-2.56-5.12-3.072-7.168-3.072l-22.528-3.072-11.264-21.504c-1.024-2.56-3.584-5.632-6.656-4.096-2.56 1.536-4.096 4.096-5.12 7.168-3.072 6.656-6.144 12.8-9.216 19.456l-26.112 4.096c-2.56 1.024-4.096 3.584-3.584 6.144 1.024 1.536 2.56 3.584 4.096 5.12l10.24 11.264c1.536 1.536 3.072 3.072 4.608 5.12-1.536 6.656-2.048 13.312-3.584 19.968-1.024 2.56-1.024 5.632-1.024 8.704 2.048 0 2.56 0.512 2.56 1.024z m-441.856-312.832c3.584 2.048 6.144 0 8.704-2.048l19.456-10.752 20.48 9.216c3.584 1.536 5.632 3.072 8.704 0.512 2.56-2.56 1.024-6.656 0.512-8.704-1.024-7.168-2.56-14.336-3.584-20.992 5.12-5.632 10.752-10.752 16.384-15.872 2.56-2.56 4.608-5.12 3.584-7.68-1.024-2.56-5.12-3.072-7.168-3.072l-22.528-3.072-11.264-21.504c-1.024-2.56-3.584-5.632-6.656-4.096-2.56 1.536-4.096 4.096-5.12 7.168-3.072 6.656-6.144 12.8-9.216 19.456l-26.112 4.096c-2.56 1.024-4.096 3.584-3.584 6.144 1.024 1.536 2.56 3.584 4.096 5.12l10.24 11.264c1.536 1.536 3.072 3.072 4.608 5.12-1.536 6.656-2.048 13.312-3.584 19.968-1.024 2.56-1.024 5.632-1.024 8.704 2.048 0 2.56 0.512 3.072 1.024z" fill="#FF6C6D" p-id="5063"></path><path d="M290.304 307.712l14.336 10.24-15.872 23.04 100.864 69.632 30.208-43.52-121.344-83.968 8.704-12.288 135.68 93.696-54.784 78.848-14.336-9.728 7.168-10.24L280.064 353.28l-33.792 49.152c-7.168 10.24-5.632 18.944 4.096 25.6l82.944 57.344c9.728 6.656 17.92 7.168 24.576 1.536 6.656-5.632 14.848-13.312 23.552-24.064 3.072 5.12 6.656 9.728 10.752 14.848-9.728 10.752-17.92 18.944-24.576 24.576-12.288 10.24-26.112 10.24-41.472-0.512L237.056 439.808c-17.408-11.776-19.456-26.624-7.168-44.544l60.416-87.552zM444.928 567.808l44.544 32.256 52.224 33.792c-5.12 3.072-9.728 6.144-14.848 9.728l-49.664-33.28-42.496-30.72c-18.944-13.824-29.184-29.696-29.184-48.64-4.608 0.512-16.384 3.072-34.304 7.68l2.56-18.944c14.336-2.048 25.6-3.072 33.28-4.096l39.936-57.856-19.456-13.312 8.192-12.288 32.768 22.528-50.688 73.216c2.56 14.848 11.264 28.672 27.136 39.936z m58.88-129.024l72.192 50.176 22.528-32.256 13.824 9.216-22.528 32.256 29.184 19.968-8.704 12.288-29.184-19.968-48.64 70.144c-10.24 14.336-22.016 16.896-35.84 7.168-7.168-5.12-15.872-11.264-25.6-17.92 2.56-4.608 5.12-10.24 8.192-16.896 8.192 7.168 16.384 13.312 24.064 18.944 7.168 4.608 13.312 3.072 18.432-4.608l45.568-66.048-72.192-50.176 8.704-12.288z m-10.752-53.76c1.536 13.824 2.56 29.696 2.56 48.128-6.144-0.512-12.288-0.512-17.408 0 0.512-17.408 0.512-33.28 0-47.616l14.848-0.512z m-5.12 90.624l15.36-0.512c1.536 24.064 2.048 43.008 2.56 56.32l-17.408 0.512c1.024-19.968 0.512-38.912-0.512-56.32zM589.312 638.464l4.608 15.36c-19.968 4.608-37.376 7.68-52.224 9.216-0.512-4.096-1.536-9.216-2.56-15.36 16.896-1.536 33.792-4.608 50.176-9.216z m-17.92-34.304l15.872 10.752 53.76-77.824-13.824-9.728 7.68-11.264 13.824 9.728 14.336-20.48 12.288 8.704-14.336 20.48 34.816 24.064 14.848-20.992 12.288 8.704-14.848 20.992 13.824 9.216-7.68 11.264-13.824-9.216-53.76 77.824 13.312 9.216-7.68 11.264-89.088-61.44 8.192-11.264z m28.16 19.456l34.816 24.064 13.312-18.944-34.816-24.064-13.312 18.944z m6.656 37.888l13.824-2.56c3.584 11.264 7.168 22.528 10.24 33.28l-15.36 3.584c-2.56-11.264-5.12-22.528-8.704-34.304z m136.704-95.232l59.392 41.472-94.72 136.704c-9.216 13.312-19.968 15.36-32.768 6.656-6.144-4.608-12.288-8.704-18.432-13.312 2.048-4.096 4.608-8.704 7.168-14.336 7.68 6.656 13.312 10.752 16.896 13.312 6.144 4.096 11.264 3.072 15.872-3.072l24.576-35.328-35.84-25.088c-18.432 23.552-39.936 38.912-65.024 45.568-1.024-5.12-2.048-10.752-3.584-16.384 16.384-4.096 29.696-10.752 39.936-20.48 10.24-8.704 24.576-26.624 43.008-53.248l43.52-62.464z m-122.88 27.648l34.816 24.064 12.8-18.944-34.816-24.064-12.8 18.944z m20.48-29.184L675.84 588.8l12.8-18.944-34.816-24.064-13.312 18.944z m52.736 98.304l35.328 24.576 23.04-32.768-34.816-24.064c-9.728 14.336-17.408 25.088-23.552 32.256z m89.088-52.736l-34.816-24.064-22.528 32.768 34.816 24.064 22.528-32.768z" fill="#EC696A" p-id="5064"></path></svg>
                        已过期
                    </div>
                    <div class="infoMid">
                         {{ res.discontinued }}
                    </div>
                </div>
                <div class="bt" @click="add()">
                    <div>
                        <svg t="1715964188851" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10959" width="32" height="32"><path d="M953.37931 512C953.37931 268.232939 755.767084 70.62069 512 70.62069 268.232934 70.62069 70.62069 268.232939 70.62069 512 70.62069 755.767061 268.232934 953.37931 512 953.37931 755.767084 953.37931 953.37931 755.767061 953.37931 512ZM547.310345 476.689655 547.310345 264.858364C547.310345 245.21731 531.501374 229.517241 512 229.517241 492.362681 229.517241 476.689655 245.340001 476.689655 264.858364L476.689655 476.689655 264.858359 476.689655C245.217315 476.689655 229.517241 492.498635 229.517241 512 229.517241 531.637326 245.340001 547.310345 264.858359 547.310345L476.689655 547.310345 476.689655 759.141636C476.689655 778.78269 492.498626 794.482759 512 794.482759 531.637319 794.482759 547.310345 778.659999 547.310345 759.141636L547.310345 547.310345 759.141694 547.310345C778.78272 547.310345 794.482759 531.501365 794.482759 512 794.482759 492.362674 778.660017 476.689655 759.141694 476.689655L547.310345 476.689655ZM0 512C0 229.230209 229.230204 0 512 0 794.769832 0 1024 229.230209 1024 512 1024 794.769791 794.769832 1024 512 1024 229.230204 1024 0 794.769791 0 512Z" fill="#707070" p-id="10960"></path></svg>
                    </div>
                    <div>新增库存</div>
                </div>
            </div>
        </el-card>
    </div>

</template>

<script>
import {overviewInventory} from '@/api/workspace'
export default {
    data(){
        return{
            res:{
                sold: 0,
                discontinued: 0,
                soldOut: 0
            }
        }
    },
    created(){
        overviewInventory().then(res=>{
            this.res = res.data
        }).catch(err=>{
            console.log(err)
        })
    },
    methods:{
        button(){
            this.$router.push('/home/inventory')
            this.$store.state.menu_active = 10
        },
        add(){
            this.$router.push({
                path:'/home/addInventory',
                query:{ 
                    methods:'add'
                }
            })
        }
    }
}
</script>

<style scoped>
.text {
    font-size: 14px;
}

.item {
    padding: 18px 0;
}

.box-card {
    /* width: 480px; */
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    /* justify-content: space-around; */
}

.todayData{
    width: 49%;
    height: 180px;
    margin-top: 5px;
}

.label{
    width: 24%;
    height: 80%;
    border-radius: 5px;
    background: rgb(236,245,255);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bt{
    width: 20%;
    height: 80%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #1677ffb9;
}



.box-card:hover,.bt:hover{
    /* margin-top: -5px; */
    transform: scale(1.005);
    box-shadow: 0 0 10px 2px #d5d4d4;/*盒子阴影*/
    transition: all 0.5s;/*持续时间*/

}

.title{
    height: 30px;
    display: flex;
    justify-content: space-between;
}

.info{
    width: 100%;
    height: 85%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: -8px;
}

.titleInfo{
    font-weight: bold;
}

.button{
    align-self: end;
    color: #9e9e9e;
    font-weight: 500;
}

::v-deep .box-card .el-card__body{
    height: 100%;
}

.infoTop{
    font-size: 14px;
    height: 50%;
    align-items: center;
    line-height: 40px;
    text-align: left;
    margin-left: 15px;
}

.infoMid{
    font-weight: bold;
    font-size: 26px;
    /* height: 80%; */
    text-align: left;
    margin-right: 15px;
}
</style>